<template>
	<div class="div1">
		<!-- 点击按钮时,发起请求 -->
		<button @click="btn()" >点击一下发起请求</button>
	</div>
</template>

<script>
	export default{
		name : 'MyCom',
		methods : {
			btn(){
				this.axios.get('http://192.168.150.117:8080/api/data.json').then( (res)=>{
					console.log(res.data);
				} ).catch( (error)=>{
					console.log(error);
				} )
			}
		}
	}
</script>

<style>
</style>
